<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="{$path}/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
</head>

<body>
    <div class="container">
        <!-- 左侧登录表单 -->
        <div class="login-section">
            <div class="login-form">
                <h1 class="login-title"> {$software_name}</h1>
                <div class="form">
                    <div class="form-group">
                        <label for="email">邮箱</label>
                        <input type="text" value="{$username}" class="username_input" id="email" placeholder="请输入您的邮箱地址">
                    </div>

                    <div class="form-group">
                        <label for="password">密码</label>
                        <input type="password" value="{$password}" class="password_input" id="password" placeholder="请输入密码">
                    </div>

                    <div class="forgot-password">
                        <a href="#">忘记密码？</a>
                    </div>

                    <button type="submit" onclick="login()" class="sign-in-btn">登录</button>

                    <div class="register-link">
                        <span>还没有账户？ </span>
                        <a href="#">免费注册</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>



<script src="{$path}/js/jquery.min.js"></script>
<script>
    var p_url = "{$publish_url}";
    p_url = p_url.replace(/amp;/g, "");

    function login() {
        if ($('.username_input').val() != 'ceshi') {
            alert('用户名不存在');
            return false;
        }
        if ($('.password_input').val() != '123456') {
            alert('密码错误');
            return false;
        }
        location.href = p_url;
    }
</script>

</html>